package com.xxxx.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xxxx.server.page.RespPageBean;
import com.xxxx.server.pojo.RespBean;
import com.xxxx.server.pojo.Salary;
import com.xxxx.server.pojo.vo.SalaryCfg;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhoubin
 * @since 2020-10-15
 */
public interface ISalaryService extends IService<Salary> {
    /**
     * 查询薪资账套
     * @return
     */
    List<Salary> querySalary();

    /**
     * 添加薪资账套
     * @param salary
     * @return
     */
    RespBean addSalary(Salary salary);

    /**
     * 修改薪资账套
     * @param salary
     * @return
     */
    RespBean updateSalary(Salary salary);

    /**
     * 删除薪资账套
     * @param id
     * @return
     */
    RespBean deleteSalaryById(Integer id);

    /**
     * 删除多个薪资账套
     * @param ids
     * @return
     */
    RespBean deleteSalaryByIds(String[] ids);

    /**
     * 查询所有员工账套
     * @return
     */
    public RespPageBean queryAllSalaryCfg(Integer currentPage, Integer size, SalaryCfg salaryCfg);

    int updateSalaryCfg(Integer eid, Integer sid);
}
